home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Score_Edit2060794162007.psc / Score Editor / frmMain.frm < prev    next >
Text File  |  2007-04-16  |  7KB  |  268 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  3. Begin VB.Form frmMain 
  4.    BorderStyle     =   1  'Fest Einfach
  5.    Caption         =   "Score Editor"
  6.    ClientHeight    =   3510
  7.    ClientLeft      =   150
  8.    ClientTop       =   435
  9.    ClientWidth     =   10065
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   3510
  14.    ScaleWidth      =   10065
  15.    StartUpPosition =   2  'Bildschirmmitte
  16.    Begin VB.TextBox txtComposer 
  17.       Height          =   285
  18.       Left            =   6480
  19.       TabIndex        =   13
  20.       Top             =   720
  21.       Width           =   3495
  22.    End
  23.    Begin VB.TextBox txtTitle 
  24.       Height          =   285
  25.       Left            =   960
  26.       TabIndex        =   11
  27.       Top             =   720
  28.       Width           =   3495
  29.    End
  30.    Begin VB.CommandButton Command1 
  31.       Caption         =   "Neu"
  32.       Height          =   375
  33.       Left            =   120
  34.       TabIndex        =   10
  35.       Top             =   120
  36.       Width           =   615
  37.    End
  38.    Begin MSComDlg.CommonDialog Cmd 
  39.       Left            =   9000
  40.       Top             =   2280
  41.       _ExtentX        =   847
  42.       _ExtentY        =   847
  43.       _Version        =   393216
  44.       CancelError     =   -1  'True
  45.    End
  46.    Begin VB.CommandButton Command10 
  47.       Caption         =   "Verbinden"
  48.       Height          =   255
  49.       Left            =   5520
  50.       TabIndex        =   8
  51.       Top             =   360
  52.       Width           =   1095
  53.    End
  54.    Begin VB.CommandButton Command11 
  55.       Caption         =   "Trenn en"
  56.       Height          =   255
  57.       Left            =   5520
  58.       TabIndex        =   9
  59.       Top             =   120
  60.       Width           =   1095
  61.    End
  62.    Begin VB.CommandButton Command9 
  63.       Caption         =   "Bild speichern"
  64.       Height          =   375
  65.       Left            =   2760
  66.       TabIndex        =   7
  67.       Top             =   120
  68.       Width           =   1335
  69.    End
  70.    Begin VB.CommandButton Command8 
  71.       Caption         =   "Akkord"
  72.       Height          =   375
  73.       Left            =   4200
  74.       TabIndex        =   6
  75.       Top             =   120
  76.       Width           =   1095
  77.    End
  78.    Begin VB.CommandButton Command7 
  79.       Caption         =   "Stop"
  80.       Height          =   375
  81.       Left            =   8400
  82.       TabIndex        =   5
  83.       Top             =   120
  84.       Width           =   1335
  85.    End
  86.    Begin VB.CommandButton Command6 
  87.       Caption         =   "Abspielen"
  88.       Height          =   375
  89.       Left            =   6840
  90.       TabIndex        =   4
  91.       Top             =   120
  92.       Width           =   1455
  93.    End
  94.    Begin VB.HScrollBar HScroll1 
  95.       Height          =   255
  96.       LargeChange     =   1000
  97.       Left            =   120
  98.       Max             =   20000
  99.       SmallChange     =   75
  100.       TabIndex        =   3
  101.       TabStop         =   0   'False
  102.       Top             =   3120
  103.       Width           =   9855
  104.    End
  105.    Begin VB.CommandButton Command3 
  106.       Caption         =   "Laden"
  107.       Height          =   375
  108.       Left            =   840
  109.       TabIndex        =   2
  110.       Top             =   120
  111.       Width           =   615
  112.    End
  113.    Begin VB.CommandButton Command2 
  114.       Caption         =   "Speichern"
  115.       Height          =   375
  116.       Left            =   1560
  117.       TabIndex        =   1
  118.       Top             =   120
  119.       Width           =   1095
  120.    End
  121.    Begin Projekt1.ctlScoreEdit ScoreEditor1 
  122.       Height          =   2055
  123.       Left            =   120
  124.       TabIndex        =   0
  125.       Top             =   1080
  126.       Width           =   9855
  127.       _ExtentX        =   10610
  128.       _ExtentY        =   10398
  129.    End
  130.    Begin VB.Label Label2 
  131.       Caption         =   "Komponist:"
  132.       Height          =   255
  133.       Left            =   5400
  134.       TabIndex        =   14
  135.       Top             =   720
  136.       Width           =   855
  137.    End
  138.    Begin VB.Label Label1 
  139.       Caption         =   "Titel:"
  140.       Height          =   255
  141.       Left            =   120
  142.       TabIndex        =   12
  143.       Top             =   720
  144.       Width           =   735
  145.    End
  146.    Begin VB.Menu mnuPitch 
  147.       Caption         =   "Lage"
  148.       Begin VB.Menu o 
  149.          Caption         =   "Oktave tiefer"
  150.          Shortcut        =   {F2}
  151.       End
  152.       Begin VB.Menu m 
  153.          Caption         =   "Mittel"
  154.          Shortcut        =   {F3}
  155.       End
  156.       Begin VB.Menu h 
  157.          Caption         =   "Oktave h÷her"
  158.          Shortcut        =   {F4}
  159.       End
  160.       Begin VB.Menu n 
  161.          Caption         =   "Noch h÷her"
  162.          Shortcut        =   {F5}
  163.       End
  164.    End
  165. End
  166. Attribute VB_Name = "frmMain"
  167. Attribute VB_GlobalNameSpace = False
  168. Attribute VB_Creatable = False
  169. Attribute VB_PredeclaredId = True
  170. Attribute VB_Exposed = False
  171. Private Sub Command1_Click()
  172. Call ScoreEditor1.NewSheet
  173. End Sub
  174.  
  175. Private Sub Command10_Click()
  176. Call ScoreEditor1.JoinSelection
  177. End Sub
  178.  
  179. Private Sub Command11_Click()
  180. Call ScoreEditor1.SplitSelection
  181. End Sub
  182.  
  183. Private Sub Command2_Click()
  184. On Error GoTo Error
  185. Cmd.Filter = "Binary File(*.bin)|*.bin"
  186. Cmd.ShowSave
  187.  
  188. If Cmd.Filename <> "" Then Call ScoreEditor1.Save(Cmd.Filename)
  189. Error:
  190. End Sub
  191.  
  192. Private Sub Command3_Click()
  193. On Error GoTo Error
  194. Cmd.Filter = "Binary File(*.bin)|*.bin"
  195. Cmd.ShowOpen
  196.  
  197. If Cmd.Filename <> "" Then Call ScoreEditor1.Load(Cmd.Filename)
  198. txtTitle.Text = ScoreEditor1.Title
  199. txtComposer.Text = ScoreEditor1.Composer
  200. Error:
  201. End Sub
  202.  
  203.  
  204.  
  205. Private Sub Command4_Click()
  206. ScoreEditor1.ChangeSignature 2
  207. End Sub
  208.  
  209. Private Sub Command6_Click()
  210. Call ScoreEditor1.Play(120)
  211. End Sub
  212.  
  213. Private Sub Command7_Click()
  214. Call ScoreEditor1.StopPlay
  215. End Sub
  216.  
  217. Private Sub Command8_Click()
  218. Dim Chord As String
  219. Chord = InputBox("Akkord eingeben:")
  220. Call ScoreEditor1.AddChord(Chord)
  221. End Sub
  222.  
  223. Private Sub Command9_Click()
  224. 'Call ScoreEditor1.SavePictureFile("D:\Eigene Dateien\Test.bmp", 2)
  225. On Error GoTo Error
  226. Cmd.Filter = "Bitmap(*.bmp)|*.bmp"
  227. Cmd.ShowSave
  228.  
  229. If Cmd.Filename <> "" Then Call ScoreEditor1.SavePictureFile(Cmd.Filename, 3)
  230. Error:
  231. End Sub
  232.  
  233. Private Sub h_Click()
  234. Call ScoreEditor1.ChangePitch(1)
  235. End Sub
  236.  
  237. Private Sub HScroll1_Change()
  238. Call ScoreEditor1.ScrollTo(HScroll1.Value)
  239. End Sub
  240.  
  241. Private Sub HScroll1_Scroll()
  242. Call ScoreEditor1.ScrollTo(HScroll1.Value)
  243. End Sub
  244.  
  245. Private Sub m_Click()
  246. Call ScoreEditor1.ChangePitch(0)
  247. End Sub
  248.  
  249. Private Sub n_Click()
  250. Call ScoreEditor1.ChangePitch(2)
  251. End Sub
  252.  
  253. Private Sub o_Click()
  254. Call ScoreEditor1.ChangePitch(-1)
  255. End Sub
  256.  
  257. Private Sub ScoreEditor1_ScrollChanged(Value As Long)
  258. HScroll1.Value = HScroll1.Value + Value
  259. End Sub
  260.  
  261. Private Sub txtComposer_KeyPress(KeyAscii As Integer)
  262. If KeyAscii = 13 Then ScoreEditor1.Composer = txtComposer.Text
  263. End Sub
  264.  
  265. Private Sub txtTitle_KeyPress(KeyAscii As Integer)
  266. If KeyAscii = 13 Then ScoreEditor1.Title = txtTitle.Text
  267. End Sub
  268.